#<INCLUDE_TYPOSCRIPT: source="FILE: fileadmin/templates/Private/TypoScript/Setup/root.ts">

lib.content_header = CONTENT
lib.content_header < styles.content.get
lib.content_header {
  table = tt_content
  select {
    where = colPos = 1
    orderBy = sorting
    languageField = sys_language_uid
  }
}

lib.content_mitte= CONTENT
lib.content_mitte< styles.content.get
lib.content_mitte{
  table = tt_content
  select {
    where = colPos = 0
    orderBy = sorting
    languageField = sys_language_uid
  }
}

lib.content_rechts = CONTENT
lib.content_rechts < styles.content.get
lib.content_rechts {
  table = tt_content
  select {
    where = colPos = 2
    orderBy = sorting
    languageField = sys_language_uid
  }
}

lib.content_links = CONTENT
lib.content_links < styles.content.get
lib.content_links {
  table = tt_content
  select {
    where = colPos = 3
    orderBy = sorting
    languageField = sys_language_uid
  }
}

page = PAGE
page {

# CSS Dateien einbinden
    includeCSS.file1 = fileadmin/templates/Public/Stylesheets/bootstrap.min.css
    includeCSS.file2 = fileadmin/templates/Public/Stylesheets/font-awesome.min.css
    includeCSS.file3 = fileadmin/templates/Public/Stylesheets/prettyPhoto.css
    includeCSS.file4 = fileadmin/templates/Public/Stylesheets/animate.min.css
    includeCSS.file5 = fileadmin/templates/Public/Stylesheets/main.css
    includeCSS.file6 = fileadmin/templates/Public/Stylesheets/responsive.css
       
   <script src="js/jquery.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.prettyPhoto.js"></script>
    <script src="js/jquery.isotope.min.js"></script>
    <script src="js/main.js"></script>
    <script src="js/wow.min.js"></script>       

# TS Dateien in Footer einbinden
	includeJSFooter.file1 = fileadmin/templates/Public/JavaScript/jquery.js

#    <script type="text/javascript">
#        $('.carousel').carousel()
#    </script>

	includeJSFooter.file2 = fileadmin/templates/Public/JavaScript/bootstrap.min.js
	includeJSFooter.file3 = fileadmin/templates/Public/JavaScript/jquery.prettyPhoto.js
	includeJSFooter.file4 = fileadmin/templates/Public/JavaScript/jquery.isotope.min.js
	includeJSFooter.file5 = fileadmin/templates/Public/JavaScript/main.js
	includeJSFooter.file6 = fileadmin/templates/Public/JavaScript/wow.min.js

# Fluid template einbinden
    10 = FLUIDTEMPLATE
    10 {
     
        partialRootPath = fileadmin/templates/Private/Partials/
        layoutRootPath = fileadmin/templates/Private/Layouts/
     
        variables {
            pageTitle = TEXT
            pageTitle.data = page:title
            topNavi < lib.topNavi   
            mainNavi < lib.mainNavi
            content_header < lib.content_header         
            content < lib.content_mitte
            content_rechts < lib.content_rechts   
            content_links < lib.content_links
            subNavi < lib.subNavi
        }

		#file = fileadmin/default/templates/main_template.html
		
		file.stdWrap.cObject = CASE
		file.stdWrap.cObject {
			# slide the template
			key.data = levelfield:-1, backend_layout_next_level, slide
			key.override.field = backend_layout
			# default template file
			1 = TEXT
			1.value = fileadmin/templates/Private/Templates/main.html
			2 = TEXT
			2.value = fileadmin/templates/Private/Templates/main_2.html
			3 = TEXT
			3.value = fileadmin/templates/Private/Templates/main_3.html
			
		}

        
    }
}


#####################################
# REAL-URL KONFIGURATION
#####################################

config {
    prefixLocalAnchors = all
    simulateStaticDocuments = 0
    baseURL = {$ROOT_BASE_URL}
    tx_realurl_enable = 1
}

#####################################
# TAGS ENTFERNEN
#####################################

#Standardheader
lib.stdheader.10.setCurrent.htmlSpecialChars = 0 

#csc-header entfernen
lib.stdheader.stdWrap.dataWrap >

#Überschriften ohne Zusätze
lib.stdheader.2.headerStyle >
lib.stdheader.3.headerClass >



lib.stdheader >
lib.stdheader = CASE
lib.stdheader {
	key.field = header_layout
	# DEFAULT H1-AUSGABE (0)
	default = TEXT
	default.required = 1
	default.field = header
	default.wrap = <div class="col-lg-12 text-center"><h2>|</h2></div>
	5 = TEXT
	5.field = header
	5.wrap = <h3>|</h3>
}


# entfernen des spacer.gif bzw. clear.gif
tt_content.image.20.spaceBelowAbove = 0
tt_content.header.stdWrap.space = 0|0
tt_content.stdWrap.space = 0|0
tt_content.stdWrap.spaceBefore = 0
tt_content.stdWrap.spaceAfter = 0
lib.stdheader.stdWrap.space = 0|0

# Umbruch <br /> nach der ݢerschrift entfernen
lib.stdheader.10.stdWrap.wrap = |
tt_content.textpic.20.spaceBelowAbove = 0
tt_content.image.20.spaceBelowAbove = 0
tt_content.textpic.20.noStretchAndMarginCells = 1
tt_content.image.20.noStretchAndMarginCells = 1

#noch mehr entfernen
tt_content.stdWrap.dataWrap =
# class="bodytext" bei RTE abstellen
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
#tt_content.stdWrap.innerWrap > 
tt_content.stdWrap.innerWrap.cObject.default.10.cObject.default.value = <section id="page-{field:uid}"><div class="container"><div class="row">|</div></div></section>
tt_content.stdWrap.innerWrap.cObject.default.20.10.value >  
tt_content.stdWrap.innerWrap.cObject.default.30.cObject.default.value >



tt_content.stdWrap.dataWrap >
#lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines>

plugin.tx_slider.wrap = | 


# IMAGE RENDERING
tt_content.image.20.layout.default.value = ###IMAGES######TEXT###
tt_content.image.20.rendering.noCaption.allStdWrap.wrap = |
tt_content.image.20.rendering.singleNoCaption.allStdWrap.innerWrap.cObject.0.value = |
tt_content.image.20.rendering.noCaption.rowStdWrap.wrap = |
tt_content.image.20.rendering.noCaption.columnStdWrap.wrap = |
tt_content.image.20.rendering.noCaption.singleStdWrap.wrap = |
tt_content.image.20.rendering.singleNoCaption.allStdWrap.wrap = |
#tt_content.image.20.rendering.singleNoCaption.singleStdWrap.wrap = <li>|</li>
tt_content.image.20.rendering.singleNoCaption.singleStdWrap.wrap = |<div class="demo-sep" style="margin-top: 50px;"></div>
